﻿#ifndef MVBPORTDATA_H
#define MVBPORTDATA_H

#include <QString>
#include <QVariant>
#include <QVector>
/*******************************
fileName；mvbportdata.h
date:2024-12-02
author:bang
describe:mvb端口信息结构定义，用于缓存端口信息，MVb变量的解析
*******************************/

class MVBVarCell
{
public:
    int m_byteIndex;
    int m_bitIndex;
    int m_bitSize;
    QString m_MVBtype;
//    MVBVariableType m_varType;
    QString m_VarName;
    QVariant m_cellValue;   //根据MVBType确定value 的值
};


class MVBPortData
{
public:
    MVBPortData();

    int m_portType;
    QString m_portAddress;
    QVector<MVBVarCell> m_portVars;


};

#endif // MVBPORTDATA_H
